package com.routz.nettydemo.pojodemo.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户端向服务器发送请求信息
 */
public class BookRequestMsg implements Serializable {
    private static final long serialVersionUID = -7335293929249462183L;

    private User user;//发送订票信息用户

    private String trainNumber;//火车车次

    private int code;//查询命令

    private Date startTime;//开车时间

    public BookRequestMsg() {
    }

    public BookRequestMsg(User user, String trainNumber, int code, Date startTime) {
        this.user = user;
        this.trainNumber = trainNumber;
        this.code = code;
        this.startTime = startTime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getTrainNumber() {
        return trainNumber;
    }

    public void setTrainNumber(String trainNumber) {
        this.trainNumber = trainNumber;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
}
